
.editor-simple-payments-modal {
	&.dialog.card {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		max-width: none;

		@include breakpoint( '>660px' ) {
			top: 5%;
			bottom: 5%;
			left: 5%;
			right: 5%;
			width: 90%;
		}

		@include breakpoint( '>960px' ) {
			left: 12.5%;
			right: 12.5%;
			width: 75%;
		}
	}

	.header-cake.card {
		@include breakpoint( '<660px' ) {
			margin-top: 0;
		}
	}

	.dialog__content {
		display: flex;
		flex-direction: column;
		flex: auto;
		min-height: 0; // permits the to shrink below its min height and scroll
		padding: 0;
	}

	.dialog__action-buttons {
		flex: none;
		margin: 0;
	}

	.notice {
		flex: none;
		margin-bottom: 0;
	}

	.empty-content {
		align-items: center;
		display: flex;
		flex-direction: column;
		flex-grow: 1;
		justify-content: center;
		margin: 0 auto;
		overflow-y: auto;
		padding: 16px;

		@include breakpoint( '>480px' ) {
			padding: 24px;
		}
	}

	.empty-content__illustration {
		margin-bottom: 16px;
		min-height: 0;
	}

	.empty-content.has-title-only .empty-content__title {
		margin-bottom: 16px;
	}

	.upgrade-nudge.card.editor-simple-payments-modal__nudge-nudge {
		flex-shrink: 0;
		text-align: left;
	}
	
	.empty-content__line {
		margin: 8px;
	}

	.empty-content__action {
		margin-top: 16px;
	}

	.upgrade-jetpack {
		.empty-content__illustration {
			margin-bottom: -35px;
			min-height: 0;
		}
		.banner {
			text-align: left;
			text-decoration: none;
		}
	}

	.dialog__editor-simple-payments-modal-figure-container {
		position: relative;
	}

	.dialog__product-image-container {
		height: 200px;
		margin-bottom: 20px;
		margin-right: 25px;
		position: relative;
		width: 200px;
	}

	.dialog__product-image-placeholder,
	.dialog__product-image {
		width: 200px;
		height: 200px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background-color: var( --color-neutral-0 );
		box-shadow: inset 0 0 0 1px var( --color-neutral-5 );
		font-size: 14px;
		overflow: hidden;

		&:hover {
			cursor: pointer;
		}

		&:focus {
			outline: none;

			.accessible-focus & {
				box-shadow: inset 0 0 0 2px var( --color-primary-light );
			}
		}
	}

	.remove-button {
		margin-top: -7px;
		margin-right: -7px;
	}

	.async-load__placeholder {
		display: none;
	}

	.spinner-line {
		display: none;
	}

	.editor-featured-image__preview-image {
		max-width: 200px;
		max-height: 200px;
	}
}

.editor-simple-payments-modal__nudge-nudge {
	text-decoration: none;
}

.editor-simple-payments-modal__navigation.card {
	height: 48px;
	margin: 0;
	flex: none;
	z-index: 1;
}

.editor-simple-payments-modal__form {
	padding: 16px;
	flex: auto;
	overflow-y: auto;

	@include breakpoint( '>480px' ) {
		padding: 24px;
	}

	@include breakpoint( '>660px' ) {
		display: flex;
	}

	.dialog__editor-simple-payments-modal-image {
		max-width: 200px;
		max-height: 200px;
	}
}

.editor-simple-payments-modal__product-image {
	width: 200px;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	background-color: var( --color-neutral-0 );
	box-shadow: inset 0 0 0 1px var( --color-neutral-5 );

	@include breakpoint( '>660px' ) {
		flex: none;
		margin-right: 24px;
	}
}

.editor-simple-payments-modal__form-fields {
	@include breakpoint( '>660px' ) {
		flex: auto;
	}
}

.editor-simple-payments-modal__list {
	flex: auto;
	overflow-y: auto;
}

.editor-simple-payments-modal__list-item.card {
	display: flex;
	align-items: center;

	.form-radio {
		flex: none;
		margin: 0;
		margin-right: 24px;
	}

	.dialog__editor-simple-payments-modal-figure {
		flex: none;
		margin-left: 16px;
		height: 40px;
		width: 40px;
	}

	&.is-placeholder {
		padding-left: 64px; // 2*24px of padding + 16px of radio width
		padding-right: 72px; // 2*24px of padding + 24px gridicon width
	}

	.placeholder-text {
		@include placeholder();
	}
}

.editor-simple-payments-modal__list-label {
	flex: auto;
	min-width: 0;
	font-family: $serif;
	font-weight: bold;

	&.is-error {
		color: var( --color-error );
	}
}

.editor-simple-payments-modal__list-name {
	white-space: nowrap;
	overflow: hidden;
	position: relative;

	&::after {
		@include long-content-fade();
	}
}

.editor-simple-payments-modal__list-menu {
	flex: none;
	margin-left: 16px;
}

.dialog__editor-simple-payments-modal-figure {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var( --color-neutral-0 );

	&.is-placeholder {
		@include placeholder();
	}
}

.dialog__editor-simple-payments-modal-image {
	max-width: 100%;
	max-height: 100%;
}
